package edu.hgnc.controller;


import edu.hgnc.bean.User;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class NoViewController {

	private static Log log = LogFactory.getLog(NoViewController.class);

	@RequestMapping("/noView")
	public void noView(){
		log.debug("没有返回值的Controller");
	}

	@RequestMapping("/noView2")
	@ResponseBody
	public User noView2(){
		log.debug("没有返回值的Controller");
		User user = new User();
		user.setUsername("张三");
		user.setAge(18);
		return user;
	}
}
